Recommend file-by-file mode for Jujutsu config#864
Conversation
The previous docs gave difft two directories to diff. But that loses information about file renames, which is information jj has. This configuration tells Jujutsu to pass individual pairs of files to difft.
|
I had been using this config for a while but hadn't thought to tell you about it, because the paths in the output looked bad. But after a jj update (I think?) my diffs have good paths in them, so I think it's 100% positive now. But you should probably figure out if #863 is a problem before accepting this. |
|
Create a file rename repo: With this config: Comparison to built-in output: With a rename + edit: |
|
It took me almost a year, but I dug into this a bit more on jj-vcs/jj#7660 . I think until that is resolved we shouldn't make a change here, so when we do make a change we can change both this and the jj docs (https://docs.jj-vcs.dev/latest/config/#generating-diffs-by-external-command) to the final correct version. It's unfortunate that right now both docs have a config where file renames aren't right, but I guess nobody else minds as much as me, ha! |
The previous docs gave difft two directories to diff. But that loses information about file renames, which is information jj has.
This configuration tells Jujutsu to pass individual pairs of files to difft.